import { home } from "@/router/enums";

const { VITE_HIDE_HOME } = import.meta.env;

export default {
    path: "/",
    name: "Home",
    component: () => import("@/layout/index.vue"),
    redirect: "/welcome",
    meta: {
        icon: "ep:home-filled",
        title: "menu.home",
        rank: home,
    },
    children: [
        {
            path: "/welcome",
            name: "Welcome",
            component: () => import("@/views/welcome/index.vue"),
            meta: {
                title: "menu.home",
                showLink: VITE_HIDE_HOME !== "true",
                fixedTag: VITE_HIDE_HOME !== "true",
            },
        },
    ],
} satisfies RouteConfigsTable;
